package com_djm_2025_06_03.interfacedemo2;

public class PingPongPlayer extends Player implements SpeakEnglish{
    @Override
    public void study() {
        System.out.println(this.name+"学习打乒乓球");
    }

    @Override
    public void speakEnglish() {
        System.out.println(this.name+"说英语");
    }

    public PingPongPlayer() {
    }

    public PingPongPlayer(String name, int age) {
        super(name, age);
    }



    @Override
    public String toString() {
        return "PingPongPlayer{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
